def fight(df):
    dayup=1
    for i in range(365):
        if i%7 in (6,0):
            dayup*=(1-0.01)
        else:
            dayup*=(1+df)
    return dayup
dayfactor=0.01
target=1.01**365
while fight(dayfactor) < target:
    dayfactor+=0.001
print('%.3f'%dayfactor)
